import axios from '@/request'

export const getRecommendList = () => {
  return axios.get('wipi/api/article/recommend')
}
export const getTags = () => {
  return axios.get('/wipi/api/tag')
}
export const getCategory = () => {
  return axios.get('/wipi/api/category')
}
export const getSiwper = () => {
  return axios.get('/wipi/api/article/all/recommend')
}

// 知识小册
export const getAllBack = () => {
  return axios.get('/wipi/api/knowledge')
}

export const getAllList = () => {
  return axios.get('/wipi/api/article')
}
// 文章列表
export const getarticeList = () => {
  return axios.get('/wipi/api/article/archives')
}
// article详情
export const getarticeListDetails = (id) => {
  return axios.post(`/wipi/api/article/${id}/views`)
}
export const getSearch = () => {
  return axios.get('/wipi/api/search/article?keyword=1')
}
// 发送评论
export const sendComments = (params) => {
  return axios.post('/wipi/api/comment', params)
}

// 评论内容
export const getCommentsList = (id) => {
  return axios.get(`/wipi/api/comment/host/${id}}?page=1&pageSize=6`)
}

// https://bjwz.bwie.com/wipi/api/comment/host/5826a5c2-e245-4670-979e-aad8f0552ecf%7D?page=1&pageSize=6
// /wipi/api/category
// /wipi/api/tag
// /wipi/api/article/all/recommend

/// wipi/api/article
// /wipi/api/category
// /wipi/api/search/article
